<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/menu.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/menu.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="menu_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef menu_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define menu_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdlib.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;assert.h&gt;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#include &lt;SDL/SDL.h&gt;</span>
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;SDL/SDL_ttf.h&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;SDL/SDL_image.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;FMOD/fmod.h&gt;</span>
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="constante_8h.html">constante.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="scanf__SDL_8h.html">scanf_SDL.h</a>&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;<a class="code" href="personnage_8h.html">personnage.h</a>&quot;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &quot;<a class="code" href="mission_8h.html">mission.h</a>&quot;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &quot;<a class="code" href="deplacement_8h.html">deplacement.h</a>&quot;</span>
<a name="l00017"></a>00017 
<a name="l00018"></a><a class="code" href="structPartie.html">00018</a> <span class="keyword">typedef</span> <span class="keyword">struct</span>
<a name="l00019"></a>00019 {
<a name="l00020"></a><a class="code" href="structPartie.html#a64f3332683296dc78a7b72bd6af796e7">00020</a>     <span class="keywordtype">char</span> nom [50];
<a name="l00021"></a><a class="code" href="structPartie.html#afce052fba7bdfd427725033f32135a44">00021</a>     <a class="code" href="structPersonnage.html">Personnage</a>* <a class="code" href="structPartie.html#afce052fba7bdfd427725033f32135a44">joueur</a>;
<a name="l00022"></a><a class="code" href="structPartie.html#a484df3c0cbde95f87dd6b99a39c7fa13">00022</a>     <span class="keywordtype">int</span> <a class="code" href="structPartie.html#a484df3c0cbde95f87dd6b99a39c7fa13">nbJoueur</a>;
<a name="l00023"></a><a class="code" href="structPartie.html#a6ce77593d810d86ead8cb8f23251160e">00023</a>     <span class="keywordtype">int</span>* <a class="code" href="structPartie.html#a6ce77593d810d86ead8cb8f23251160e">missionsAccomplies</a>;
<a name="l00024"></a><a class="code" href="structPartie.html#ade54b92e9298975677e233d4f230e5a4">00024</a>     <span class="keywordtype">int</span> <a class="code" href="structPartie.html#ade54b92e9298975677e233d4f230e5a4">nbMission</a>;
<a name="l00025"></a><a class="code" href="structPartie.html#acb758b5de1cdef33c203e64754e03398">00025</a>     <span class="keywordtype">int</span> <a class="code" href="structPartie.html#acb758b5de1cdef33c203e64754e03398">missionActuelle</a>;
<a name="l00026"></a><a class="code" href="structPartie.html#a44dc7ed6364a34de02c468ccb260b344">00026</a>     <span class="keywordtype">char</span> <a class="code" href="structPartie.html#a44dc7ed6364a34de02c468ccb260b344">numCarte</a>;
<a name="l00027"></a>00027 } <a class="code" href="structPartie.html">Partie</a>;
<a name="l00028"></a>00028 
<a name="l00033"></a>00033 <span class="keywordtype">void</span> <a class="code" href="menu_8c.html#a54ce2976a210c5c4cde23080274c9067" title="Preconditions : jeu n&#39;est pas initialisé.   Postconditions : initialise jeu.">partieVide</a> (<a class="code" href="structPartie.html">Partie</a>* jeu);
<a name="l00034"></a>00034 
<a name="l00039"></a>00039 <span class="keywordtype">void</span> <a class="code" href="menu_8c.html#a114606ca4d4349b341cc6fa893ac9e95" title="Preconditions : jeu n&#39;est pas initialisé, 0&lt;nbJoueur&lt;5, nbMission&lt;nombre de missions dans Missions...">partieInit</a> (<a class="code" href="structPartie.html">Partie</a>* jeu,<span class="keywordtype">char</span> nom [50], <a class="code" href="structPersonnage.html">Personnage</a>* liste, <span class="keywordtype">int</span> nbJoueur,<span class="keywordtype">int</span>* missionsAccomplies,<span class="keywordtype">int</span> nbMission,<span class="keywordtype">int</span> missionActuelle,<span class="keywordtype">int</span> numCarte);
<a name="l00040"></a>00040 
<a name="l00045"></a>00045 <span class="keywordtype">void</span> <a class="code" href="menu_8c.html#a746fb9c809d30d9f24400864632d58d0" title="Preconditions : jeu est initialisé.   Postconditions : jeu est libéré.">partieLibere</a> (<a class="code" href="structPartie.html">Partie</a>* jeu);
<a name="l00046"></a>00046 
<a name="l00051"></a>00051 <span class="keywordtype">void</span> <a class="code" href="menu_8c.html#a71d6a57f89b25ca85c4579c4003c9cfd" title="Preconditions : jeu est initialisé.   Postconditions : retourne le nombre de joueur de jeu...">getPartieNom</a> (<a class="code" href="structPartie.html">Partie</a>* jeu,<span class="keywordtype">char</span> nom[50]);
<a name="l00052"></a>00052 
<a name="l00057"></a>00057 <a class="code" href="structPersonnage.html">Personnage</a>* <a class="code" href="menu_8c.html#a8f06b47f3f3b369dae369d9efb097260" title="Preconditions : jeu est initialisé.   Postconditions : retourne la liste des joueurs de jeu...">getPartieJoueurs</a> (<a class="code" href="structPartie.html">Partie</a>* jeu);
<a name="l00058"></a>00058 
<a name="l00063"></a>00063 <a class="code" href="structPersonnage.html">Personnage</a>* <a class="code" href="menu_8c.html#a00bd2d1a1bef8b61dec552029d1ef62b" title="Preconditions : jeu est initialisé,0&lt;=i&lt;4.   Postconditions : retourne le ieme joueur de jeu...">getPartieJoueurI</a> (<a class="code" href="structPartie.html">Partie</a>* jeu, <span class="keywordtype">int</span> i);
<a name="l00064"></a>00064 
<a name="l00069"></a>00069 <span class="keywordtype">int</span> <a class="code" href="menu_8c.html#a03c084b786edc84ca4e0eae57e6681c4" title="Preconditions : jeu est initialisé.   Postconditions : retourne le nombre de joueur de jeu...">getPartieNbJoueur</a> (<a class="code" href="structPartie.html">Partie</a>* jeu);
<a name="l00070"></a>00070 
<a name="l00075"></a>00075 <span class="keywordtype">int</span> <a class="code" href="menu_8c.html#a2d0434f74466ce7a013623a19fc9698c" title="Preconditions : jeu est initialisé,0&lt;=i&lt;nombre max de mission dans Missions.txt.   Postconditions : r...">getPartieMissionAccomplie</a> (<a class="code" href="structPartie.html">Partie</a>* jeu,<span class="keywordtype">int</span> i);
<a name="l00076"></a>00076 
<a name="l00081"></a>00081 <span class="keywordtype">int</span> <a class="code" href="menu_8c.html#aaa4309914a37cd1aae3e3ab5f262eb73" title="Preconditions : jeu est initialisé.   Postconditions : retourne le nombre de missions accomplies de j...">getPartieNbMission</a> (<a class="code" href="structPartie.html">Partie</a>* jeu);
<a name="l00082"></a>00082 
<a name="l00087"></a>00087 <span class="keywordtype">void</span> <a class="code" href="menu_8c.html#ac1a24c3a548a20ea782e94bbbca42b23" title="Preconditions : jeu est initialisé, mission ne l&#39;est pas, et tabObj contient tous les objet de Iniuri...">getPartieMissionActuelle</a> (<a class="code" href="structPartie.html">Partie</a>* jeu,<a class="code" href="structMission.html">Mission</a>* mission, <a class="code" href="structObjet.html">Objet</a>* tabObj);
<a name="l00088"></a>00088 
<a name="l00093"></a>00093 <span class="keywordtype">int</span> <a class="code" href="menu_8c.html#a56ce0aac1ffaeb39e8c37440e0397096" title="Preconditions : jeu est initialisé.   Postconditions : copie la mission actuelle de jeu dans mission...">getPartieMissionActuelleType</a> (<a class="code" href="structPartie.html">Partie</a>* jeu);
<a name="l00094"></a>00094 
<a name="l00099"></a>00099 <span class="keywordtype">char</span> <a class="code" href="menu_8c.html#a27670a9a3195bec04403006d328009ff" title="Preconditions : jeu est initialisé.   Postconditions : retourne le numéro de la carte actuelle de jeu...">getPartieNumCarte</a> (<a class="code" href="structPartie.html">Partie</a>* jeu);
<a name="l00100"></a>00100 
<a name="l00105"></a>00105 <span class="keywordtype">char</span> <a class="code" href="menu_8c.html#a5c634b6e4f4d5f2fa52c4b69b9974b3f" title="Preconditions : SDL est initialisé   Postconditions : gère les évenements du menu principal du jeu...">eventMenu</a>();
<a name="l00106"></a>00106 
<a name="l00113"></a>00113 <span class="keywordtype">int</span> <a class="code" href="menu_8c.html#a810f94be5c7c7b1268cad030721c9041" title="Preconditions : police et ecran sont initalisés. nb&lt;10, 0&lt;=choix&lt;nb, position&gt;0   Postconditions : affich...">afficherPage</a> (SDL_Surface *ecran,TTF_Font *police, <span class="keywordtype">char</span> texte_SDL[10][150],<span class="keywordtype">int</span> nb,<span class="keywordtype">int</span> choix,<span class="keywordtype">int</span> position,<span class="keywordtype">int</span>* haut,<span class="keywordtype">int</span>* bas,<span class="keywordtype">int</span>* page);
<a name="l00114"></a>00114 
<a name="l00121"></a>00121 <span class="keywordtype">char</span> <a class="code" href="menu_8c.html#abecef8d09f82eb3fcd26dcf15333fbcd" title="Preconditions : police, jeu et ecran sont initalisés. sauvegarde correspond à la chaine &quot;Sauvegarde ...">nouvellePartie</a> (SDL_Surface *ecran,TTF_Font *police,<a class="code" href="structPartie.html">Partie</a>* jeu,<span class="keywordtype">char</span>* sauvegarde,FMOD_SYSTEM *system,<a class="code" href="structObjet.html">Objet</a>* tab);
<a name="l00122"></a>00122 
<a name="l00128"></a>00128 <span class="keywordtype">char</span> <a class="code" href="menu_8c.html#a63c7494a25b6a37193da347eef16382f" title="Preconditions : police, ecran, systeme et musique sont initalisés.   Postconditions : affiche les dif...">afficherOptions</a>(SDL_Surface *ecran,TTF_Font *police,FMOD_SYSTEM *system,FMOD_SOUND **musique,<a class="code" href="structObjet.html">Objet</a>* tabObjet);
<a name="l00129"></a>00129 
<a name="l00135"></a>00135 <span class="keywordtype">char</span> <a class="code" href="menu_8c.html#af41c03a3898db6b95297e1c5d27b7247" title="Preconditions : police, partie et ecran sont initalisés.   Postconditions : affiche les différentes p...">afficherMenu</a> (SDL_Surface *ecran, <span class="keywordtype">char</span> jeu,TTF_Font *police,<a class="code" href="structPartie.html">Partie</a>* partie,<a class="code" href="structObjet.html">Objet</a>* tabObjet);
<a name="l00136"></a>00136 
<a name="l00141"></a>00141 <span class="keywordtype">char</span> <a class="code" href="menu_8c.html#ad6c980d55747ffed25753e73626ca23d" title="Preconditions : SDL est initialisé   Postconditions : gère les évenements du lancement du jeu...">eventDebut</a>(SDL_Surface *ecran);
<a name="l00142"></a>00142 
<a name="l00148"></a>00148 <span class="keywordtype">char</span> <a class="code" href="menu_8c.html#a4b19a1ffdbf883803beb19055113cabc" title="Preconditions : police et ecran sont initalisés.   Postconditions : affiche les pages du lancement du...">afficherDebut</a> (SDL_Surface *ecran,TTF_Font *police);
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 <span class="keywordtype">int</span> <a class="code" href="menu_8c.html#a8396c50bf544009fb2fc4907b00cbad3">mainMenu</a>();
<a name="l00151"></a>00151 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
